package capaPresentacion.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * La clase inicial define <code>onModuleLoad()</code>.
 */
public class WorldsTrainerWebApplication implements EntryPoint {
	/**
	 * Este es el metodo del inicio
	 */
	public void onModuleLoad() {
		WorldsTrainerWebServiceAsync rpcService = GWT
				.create(WorldsTrainerWebService.class);
		HandlerManager eventBus = new HandlerManager(null);
		AppController appViewer = new AppController(rpcService, eventBus);
		// Va a RootPanel
		appViewer.go(RootPanel.get());
	}
}
